# -*- coding:utf-8 -*-

"""
Some common function used by the CMS.
"""


def average_array(num_arr):
    """
    The average value of the given array.
    """
    return sum(num_arr) / len(num_arr)
